//引入请求库----后端请求
import http from "@/utils/http/http2";

/**
 * 查询用户列表--根据条件查询用户列表
 * @param data
 */
export function queryCustomerList(data: any) {
  return http.post("/customer/list", data);
}
export function queryById(id: any) {
  return http.get("/customer", { params:{id} });
}
export function update(data: any) {
  return http.put("/customer", data);
}
export function addCustomer(data: any) {
  return http.post("/customer", data);
}
export function accountChk(account: any) {
  return http.get("/customer/chk", { params:{account} } );
}
export function findAllSegmentation(data: any) {
  return http.post("/segmentation", data);
}
export function updateSegmentation(data: any) {
  return http.put("/segmentation", data);
}
export function getCustomerInquiryInfo(params) { 
  return http.get("/customerInquiry/all",{params});
}
export function saveCustomerInquiry(data:any) {
  return http.post("/customerInquiry", data);
}
export function selectByInquiryId(id: any) {
  return http.get(`/customerInquiryDetail/${id}`);
}
